
Page({
  data: {
    toView: 'green',
    inHeight:0
  },
  tap(e) {
    const name=e.currentTarget.dataset.name;
   
    this.setData({
      toView: name
    })
       
    
  },
  onLoad: function () {
    var _this=this;
    wx.getSystemInfo({
      success(res) {
        _this.setData({
          // inHeight: res.windowHeight
        })
        console.log(res.windowHeight);
      }
    });
		wx.showShareMenu({  
			withShareTicket:true,
			menus: ['shareAppMessage', 'shareTimeline']
		})
  },
	/**
		 * 用户点击右上角分享朋友
		 */
		onShareAppMessage: function (e) {
			
		},
		/**
		* 用户点击右上角分享朋友圈
		*/
		onShareTimeline: function () {
	
		 },
})